using System;
using NUnit.Framework;
using DotNetXmlSwfChart;

namespace DotNetXmlSwfChart.UnitTest
{
    [TestFixture]
    public class AxisTicksFixture
    {
        [Test]
        public void ToSourceXml()
        {
            string testXml =
                "<axis_ticks value_ticks='True' " +
                            "category_ticks='True' " +
                            "position='inside' " +
                            "major_thickness='2' " +
                            "major_color='ffffff' " +
                            "minor_thickness='1' " +
                            "minor_color='000000' " +
                            "minor_count='0' " +
                            "/>";
            AxisTicks at = new AxisTicks();
            at.ValueTicks = true;
            at.CategoryTicks = true;
            at.Position = "inside";
            at.MajorThickness = 2;
            at.MajorColor = "ffffff";
            at.MinorThickness = 1;
            at.MinorColor = "000000";
            at.MinorCount = 0;
            Assert.AreEqual(testXml, at.ToSourceXML());
        }
    }
}
